package entitys;
import java.io.Serializable;

import enums.*;

public class Request implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private final Command command;          // enum with the command enumerator
    private final String userID;                            // id of the command source
    private Object entity=null,entity2=null;                                          // system entity to add, modify, etc'
    private String condition;                                       // search term for the server

    
    public Request(Command command, String userID) {
            this.command = command;
            this.userID = userID;
              }
    


    public Request(Command command, String userID, Object entity) {
        this.command = command;
        this.userID = userID;
        this.entity = entity;
       
}
    
    public Request(Command command, String userID, Object entity,Object entity2) {
        this.command = command;
        this.userID = userID;
        this.entity = entity;
        this.entity2 = entity2;
       
}
    
    public Object getEntity() {
            return entity;
    }

    public void setEntity(Object entity) {
            this.entity = entity;
    }
    public Object getEntity2() {
        return entity2;
	}

    public void setEntity2(Object entity2) {
        this.entity2 = entity2;
    }

    public String getCondition() {
            return condition;
    }

    public void setCondition(String condition) {
            this.condition = condition;
    }

    public Command getCommand() {
            return command;
    }

    public String getUserID() {
            return userID;
    }


}
